﻿if exists (select * from sysobjects where name like N'%sp_DMLoaiThue_Insert%')
	drop proc sp_DMLoaiThue_Insert
go
create proc sp_DMLoaiThue_Insert
	@MaLoaiThue int = null,
	@TenLoaiThue nvarchar(50) = null,
	@IsUse bit = null,
	@CreateBy int = null,
	@ModifiedBy int = null,
	@ModifiedOn datetime = null
as
begin
	if not exists (select * from DMLoaiThue where MaLoaiThue = @MaLoaiThue)
	begin
		insert into DMLoaiThue (TenLoaiThue, IsUse, CreateBy)
		values (@TenLoaiThue, @IsUse, @CreateBy)
	end
end